package com.line.myprojectservice.service.impl;

import com.line.myprojectservice.Mapper.UserMapper;
import com.line.myprojectservice.po.User;
import com.line.myprojectservice.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
//@Transactional  事务
public class UserServiceImpl implements UserService {

    @Resource
    UserMapper userMapper;

    @Override
    public User queryUserById(String id) {
        return userMapper.queryUserById(id);
    }



    @Override
    public void addUser(User user) {
        userMapper.addUser(user);
    }

    @Override
    public void modifyUserInfo(User user) {
        userMapper.modifyUserInfo(user);
    }

}
